package com.DeptManage.service.impl;

import com.DeptManage.entity.Student;
import com.DeptManage.mapper.StudentMapper;
import com.DeptManage.service.StudentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentServiceImpl extends ServiceImpl<StudentMapper, Student> implements StudentService {

    @Autowired
    public StudentMapper studentMapper;

    @Override
    public int getSum() {
        return  studentMapper.getSum();
    }

    @Override
    public List<Student> getMax() {
        return  studentMapper.getMax();
    }

    @Override
    public List<Student> getSax() {
        return  studentMapper.getSax();
    }
}